package com.mnt.gui.base.buildfactory.cellhandle;

/**
 * column field to choice and  select execute event 
 * @author Mar 27, 2014 mnt.cico
 *
 * @param <R> row vale type
 * @param <V> field value type
 */
public abstract class EventExecutorChoiceHandle<R, V> {
	
	
	/**
	 * event execute function
	 * if first select element oldValue is null
	 * Mar 27, 2014 mnt.cico
	 */
	public abstract void execute(R rowValue, V oldValue, V newValue) throws Exception;
	
	/**
	 * execute failed execute this function, you need 
	 * Mar 27, 2014 mnt.cico
	 */
	public void onFailed(Exception e) {
		e.printStackTrace();
	}
}
